13b1ec48f570e72ef451ba014c2199e9058b8235,http/src/main/java/ro/polak/http/error/HttpError404.java,HttpError404,serve,#HttpResponse#,37
Before Change
File file = new File(errorDocumentPath);
if (file.exists()) {
response.setContentLength(file.length());
((HttpResponseWrapper) response).serveFile(file);
} else {
// Serve 500
After Change
File file = new File(errorDocumentPath);
if (file.exists()) {
response.setContentLength(file.length());
((HttpResponseWrapper) response).flushHeaders();
InputStream inputStream = new FileInputStream(file);
((HttpResponseWrapper) response).serveStream(inputStream);